<template>
	<view class="wrap" style="padding-bottom: 10px;">
	<!-- 	<u-row gutter="16">
			<u-col span="8" style="color: #999999;display: flex;" class="u-font-13">
				编号
			</u-col>
			<u-col span="4" style="color: #999999;display: flex;" class="u-font-13">
				名称	
			</u-col>
			<u-col span="4" style="color: #999999;display: flex;" class="u-font-13">
签收
			</u-col>
		</u-row> -->
		
		<u-card class="task-list-item" :border="false" padding="10" margin="10rpx" v-for="(item,i) in lists" @click="showLsggd(item)">

			<view class="" slot="body">
				<view>
					<u-tag  :text="item.ids" type="info" shape="circleLeft" mode="light"/>
					
					<u-tag  :text="item.publishtime" type="info" shape="circleRight" mode="light" style="float: right;"/>
					
					
				</view>
				
				<u-row gutter="16">
					
				
				<u-col span="12" style="color: #999999;margin: 15px 0;" class="u-font-13">	
					<view style="margin-left: 20rpx;">{{item.title}}</view>
				</u-col>
			
				
	
					<view style="">
						<u-tag  v-for="qss in item.qs" style="" :text="(qss.bmname).slice(0,2)" :type="qss.status=='1'?'success':'warning'" mode="light"/>
			
					</view>
				</u-row>
				
			</view>
			
		
		
		
		</u-card>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				lists:[]
				
			}
		},
		onShow() {
			this.getList()
			
		
		},
		methods: {
			getList(){
				this.$u.api.lsggd.getLists({
					pageNum: 1,
					pageSize:10
				})
				.then(res => {
				
					if (res.code == '200') {
						
						console.log(res)
						this.lists=res.rows
						
							console.log(this.lists)
					}else{
						this.$u.toast(res.msg);
					}
				}
				);
			},
			showLsggd(item){
				console.log(item)
				uni.navigateTo({
					url: '/pages/works/lsggd/show?id='+item.id
				});
			}
			
		}
		
	}
</script>

<style>

</style>
